<?php 
	/**
	* Klass som används för att bygga upp sidans HTML genom funktioner. 
	*/
	class PageView
	{		
		//----- FUNKTION: OUTPUT XHTML -----------------------------------------------------------
		public function OutputXhtml($title, $content)
		{
			return "<html>
				<head>
					<title>
						$title
					</title>
					<meta http-equiv='content-type' content='text/html; charset=UTF-8' />
					<link href='css/stylesheet.css' rel='stylesheet' type='text/css'/>
					<link href='css/loginform.css' rel='stylesheet' type='text/css'/>
					<link href='css/registerform.css' rel='stylesheet' type='text/css'/>
					<link href='css/userlistform.css' rel='stylesheet' type='text/css'/>					
				</head>
				<body>			   
			    	$content
				</body>	
			</html>";
		}


		//----- FUNKTION: OUTPUT LOGGED IN VIEW --------------------------------------------------
		public function OutputLoggedInView($content)
		{
			return "<div id='left'>
    				$content
    			</div>";
		}


		//----- FUNKTION: OUTPUT LOGGED OUT VIEW -------------------------------------------------
		public function OutputLoggedOutView($logIn, $register)
		{
			return "<div id='left'>
    				$logIn
    			</div>
    			<div id='right'>
    				$register
    			</div>";
		}
	}
 ?>